package com.inifitness.tenant.core.config.mp.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 忽略租户隔离注解
 *
 * @author sunjinfeng
 * @version 1.0.0
 * @since 2024-05-09 10:47
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface IgnoreTenant {

  /**
   * true为不做租户隔离 false为做租户隔离
   *
   * @return
   */
  boolean ignore() default true;
}
